from djangobb.utils import recaptcha 
from django import forms

class TopicForm(recaptcha.RecaptchaForm):
    title = forms.CharField(widget=forms.TextInput(attrs={'size':'52'}))
    desc  = forms.CharField(widget=forms.Textarea(attrs={'cols': '60', 'rows': '10'}))
    tags  = forms.CharField(widget=forms.TextInput(attrs={'size':'52'}), required=False)
    tids  = forms.CharField(widget=forms.TextInput(attrs={'size':'52'}), required=False)
    captcha = recaptcha.RecaptchaField(widget=recaptcha.RecaptchaWidget(theme='clean'))

class ForumForm(recaptcha.RecaptchaForm):
    title = forms.CharField(widget=forms.TextInput(attrs={'size':'52'}))
    desc  = forms.CharField(widget=forms.Textarea(attrs={'cols': '60'}))
    imp   = forms.IntegerField()
    captcha = recaptcha.RecaptchaField(widget=recaptcha.RecaptchaWidget(theme='clean'))

class PostForm(recaptcha.RecaptchaForm):
    title = forms.CharField(widget=forms.TextInput(attrs={'size':'52'}))
    desc  = forms.CharField(widget=forms.Textarea(attrs={'cols':'60', 'rows': '10'}))
    captcha = recaptcha.RecaptchaField(widget=recaptcha.RecaptchaWidget(theme='clean'))
